<%--
    Document   : index
    Created on : Jul 7, 2011, 1:23:40 AM
    Author     : Thanhluan216
--%>

<%@page import="server.entity.Photo"%>
<%@page import="java.util.List"%>
<%@page import="javax.naming.InitialContext"%>
<%@page import="server.process.ProcessBeanLocal"%>
<%@page import="javax.naming.Context"%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib  prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Web Photo Share</title>
        <link rel="stylesheet" href="style.css" type="text/css"/>
        <script type="text/javascript" src="js/jquery-1.5.1.min.js"></script>
        <script>
            function initilise(){
                $("#commentform").hide();
            }
            $(document).ready(function(){
                $("#comment").click(function(){
                    alert('test');
                    $("#commentform").show();
                    if ($(this).val()=="Cancel"){
                        $("#commentform").hide();
                    }
                    alert('finish');
                });
            });
        </script>
    </head>
    <body>
        <div id="wrapper">
            <div id="header">

                <h1>Photo Share</h1>
                <img src="header_right.gif" alt="hinh"/>
            </div>
            <div id="nav">
                <ul>
                    <li><a href="index.jsp">Home</a></li>
                    <li><a href="allcollection.jsp">Manage Collection</a></li>
                    <li><a href="allimage">Manage Image</a></li>
                    <li><a href="upload.jsp">Upload</a></li>
                    <li><a href="faq.jsp">FAQs</a></li>
                    <li class="end"><a href="contactus.jsp">Contact</a></li>
                </ul>
            </div>
            <div id="main">
                <div id="slidebar">
                    <div id="login">
                        <jsp:include page="login.jsp"></jsp:include>
                    </div>
                    <div id="search">
                        <jsp:include page="search.jsp"></jsp:include>
                    </div>
                    <div id="product">
                        <jsp:include page="categorypanel.jsp"></jsp:include>
                    </div>
                </div>
                <div id="content">

                    <table align="center">
                        <c:set var="i" value="0"/>
                        <c:forEach items="${lstPhoto}" var="one">
                            <c:if test="${i==0}">
                                <tr>
                                </c:if>
                                <td><a><img src="${one.serverFile}" height="150" width="200"/></a></td>
                                <c:set var="i" value="${i+1}"/>
                                <c:if test="${i==3}">
                                </tr>
                                <c:set var="i" value="0"/>
                            </c:if>

                        </c:forEach>

                    </table>
                </div>
            </div>
            <div id="footer">

            </div>
        </div>
    </body>
</html>


